#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
	int a, b, x;
	cin >> a >> b >> x;
	int count1 = 0;
	int count2 = 0;
	//1 2 3
	for (int i = x / a; i >= 0; i--) {
		int j = x - i * a;
		if (j == 0) {
			count1 = i;
			break;
		}
		if (j%b==0) {
			count2 = j / b;
			count1 = i;
			break;
		}
	}
	if (count1|| count2 ) {
		cout << count1 << " " << (x-a*count1)/b << endl;
	}
	else {
		cout << -1 << endl;
	}
	return 0;
}